{layout name="p/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>房车管理 <small>新建房车信息</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="/caravan"><i class="fa fa-dashboard"></i> 房车信息列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 新建房车信息</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          请选择车系模板，快速创建房车信息
        </div>
      </div>
    </div>
    <div class="row col-lg-12">
      <form class="form-horizontal" role="form" action="" method="post">
        <div class="form-group">
          <label for="firstname" class="control-label col-lg-3">请选择车系</label>
          <div class="col-lg-5">
          <select id='btn1' class="form-control" name='carlines'>
            <option value="" selected=""></option>
            {volist name='list' id='vo'}
            <option  value="{$vo.id}">{$vo.cartpl_name}</option>
            {/volist}
          </select>
          </div>
          <a href="/cartpl/create" class="btn btn-link">新建车系模板</a>
        </div>
        <div class="modal-footer">
            <input type="button" value="返回" class="btn btn-default"  onclick="javascript:history.back(-1);" />
        </div>
      </form>

    </div>

<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("#btn1").change(function(){
    //alert($("#btn1").val());
    window.location.href="/caravan/create_m?moban_id="+$("#btn1").val();

  });
      })
  
    
</script>